| > !ChartDraw.!Run
|
| Run file for ChartDraw
|
| by Chris Johnson
|
RMEnsure UtilityModule 3.10 Error This application is only suitable for use with RISC OS 3.10 or later versions
|
| Ensure a 32bit SharedCLibrary is installed
| http://www.iyonix.com/32bit/
| (5.17 == first 32bit SCL, 5.43 == C99 features)
RMEnsure SharedCLibrary 5.17 RMLoad System:Modules.CLib
RMEnsure SharedCLibrary 5.43 Error ChartDraw requires SharedCLibrary 5.43 or later. This can be downloaded from http://www.iyonix.com/32bit/system.shtml

| Ensure Nested WIMP is installed
| http://acorn.riscos.com/ (in the universal boot archive)
RMEnsure WindowManager 3.80 Error ChartDraw requires the Nested Window Manager. This can be obtained by downloading the Universal Boot sequence from http://acorn.riscos.com/

|
IconSprites <Obey$Dir>.!Sprites
| Original filetype
Set Alias$@RunType_7F1 /<Obey$Dir>.!Run %%*0
Set File$Type_7F1 ChartFil
| Official allocated filetype
Set Alias$@RunType_A9E /<Obey$Dir>.!Run %%*0
Set File$Type_A9E ChartDrw
|
| Find paths to file
Set ChartDraw$Dir <Obey$Dir>
Run <ChartDraw$Dir>.Resources.Resfind ChartDraw
|
If "<Font$Prefix>"="" Then Error You need to double click on !Fonts before running this application
|
RMEnsure Toolbox    0.00  RMLoad System:Modules.Toolbox.toolbox
RMEnsure Toolbox    0.00  ERROR You need the Toolbox module to run ChartDraw
RMEnsure Window     0.00  RMLoad System:modules.toolbox.window
RMEnsure Window     0.00  ERROR You need the Window module to run ChartDraw
|RMEnsure ColourDbox 0.00  RMLoad System:Modules.toolbox.colourdbox
|RMEnsure ColourDbox 0.00  ERROR You need the ColourDbox module to run ChartDraw
RMEnsure FontMenu   0.00  RMLoad System:Modules.toolbox.fontmenu
RMEnsure FontMenu   0.00  ERROR You need the FontMenu module to run ChartDraw
RMEnsure Menu       0.00  RMLoad System:Modules.toolbox.menu
RMEnsure Menu       0.00  ERROR You need the Menu module to run ChartDraw
RMEnsure Iconbar    0.00  RMLoad System:Modules.toolbox.iconbar
RMEnsure Iconbar    0.00  ERROR You need the Iconbar module to run ChartDraw
RMEnsure ProgInfo   0.00  RMLoad System:Modules.toolbox.proginfo
RMEnsure ProgInfo   0.00  ERROR You need the ProgInfo module to run ChartDraw
RMEnsure SaveAs     0.00  RMLoad System:Modules.toolbox.saveas
RMEnsure SaveAs     0.00  ERROR You need the SaveAs module to run ChartDraw
RMEnsure DCS	    0.00 RMLoad System:Modules.toolbox.DCS_Quit
RMEnsure DCS        0.00 ERROR You need the DCS_Quit module to run ChartDraw

| Ensure we have the Tabs module ----------------------------------------
X RMEnsure Tabs 0.00 RMLoad System:modules.Toolbox.Tabs
RMEnsure Tabs 0.12 RMLoad <ChartDraw$Dir>.Resources.RMStore.Tabs
RMEnsure Tabs 0.12 Error ChartDraw requires Tabs 0.09 to run
|
| Always unset the logging sysvar first
|unset <ChartDraw$Logging>
| 
| To turn logging on uncomment the following line
|set <ChartDraw$Logging> On
| 
| Set the destination of the logging data as follows
| For logging to file (in the app directory) use 1
| For logging to Reporter use 2
| For logging to SysLog use 3 (not yet implemented)
| Uncomment the following line and change the value for log destination
|Set <ChartDraw$LogDestination> 2
| 
|
WimpSlot -min 148K -max 148K
|
| Now start program
Run <ChartDraw$Dir>.!RunImage %*0
